/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Bussinnes;

import Dao.JefeDivisionFacadeLocal;
import Model.JefeDivision;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author jose
 */
@Stateless
public class JefeDivisionBL implements JefeDivisionBLLocal {

    @EJB
    private JefeDivisionFacadeLocal jefeDivisionFacade;

    public List<JefeDivision> Lista() {
        return jefeDivisionFacade.findAll();
    }

    public void registrarJefeDivision(JefeDivision j) {
        jefeDivisionFacade.create(j);
    }
    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")
}
